public class MyFz {
        private String name;     //private私有限制访问,只在本类中访问

        //Getter
        public String getName(){
            return name;
        }

        //Setter
        public void setName(String newName){
            this.name=name;
        }                           //public的setter和getter方法来访问和更信private变量的值
    }

